package com.zlf.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DemoController {

    @GetMapping("/dashboard")
    public String dashboard() {
        return "Sentinel集成SpringCloud Dashboard方式实现~~~~~~~~~~~success~~~~~~~~~~~";
    }

    @GetMapping("/urlCleaner/{id}")
    public String urlCleaner(@PathVariable("id") int id) {
        return id + "~~~~~~~~~~~urlCleaner~~~~~~~~~~~";
    }

}
